Skip to content

Conversation

JohnC32
Copy link
Contributor

@JohnC32 JohnC32 commented Sep 30, 2025

Protect against error when (file-name-directory filename) is nil which occurs on non-file buffer. We were hitting this when using lsp-mode with the p4.el package which when diff'ing pulls files from Perforce into non-file buffers and then activates a major mode that runs lsp. This ends up calling lsp-trunk-check-for-init.

Protect against error when (file-name-directory filename) is nil which occurs on non-file buffer. We
were hitting this when using lsp-mode with the p4.el package which when diff'ing pulls files from
Perforce into non-file buffers and then activates a major mode that runs lsp.  This ends up calling
lsp-trunk-check-for-init.
@github-actions github-actions bot added the client One or more of lsp-mode language clients label Sep 30, 2025
Protect against error when (file-name-directory filename) is nil which occurs on non-file buffer. We
were hitting this when using lsp-mode with the p4.el package which when diff'ing pulls files from
Perforce into non-file buffers and then activates a major mode that runs lsp.  This ends up calling
lsp-trunk-check-for-init.
Co-authored-by: Sebastiaan Speck <[email protected]>
Copy link
Contributor Author

@JohnC32 JohnC32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client One or more of lsp-mode language clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants